package com.springboot2.security.entity.po;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class ResponseEntity {

    /**
     * 响应码
     **/
    private Integer code;
    /**
     * 响应消息（错误消息）
     **/
    private String msg;

    /**
     * 响应数据
     **/
    private Object data;

    public static ResponseEntity success() {
        return new ResponseEntity(200, "成功", null);
    }
}
